﻿<UserControl x:Class="LaunchPad.Core.Controls.MapItemControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="20" d:DesignWidth="50" ToolTip="{Binding Path=Description}" >
    <UserControl.Resources>

        <Style TargetType="{x:Type Border}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=IsHot}" Value="True">
                    <Setter Property="BorderBrush" Value="Red"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=IsSelected}" Value="True">
                    <Setter Property="BorderBrush" Value="LawnGreen"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=IsHovered}" Value="True">
                    <Setter Property="BorderBrush" Value="LightSteelBlue" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    <Border BorderThickness="2" CornerRadius="4" >
    <Grid>
        <Label Background="WhiteSmoke" Content="{Binding Name}" Width="Auto" Height="Auto" FontSize="9" />
        </Grid>
    </Border>
</UserControl>
